/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vn.support.ui.frame;

import java.util.HashMap;
import java.util.Map;
import javax.swing.Action;

/**
 *
 * @author nttuyen
 */
public class ActionManager {
    private static final Map<String, Action> actions = new HashMap<String, Action>();
    
    static {
        
    }

    public static Action get(String actionName) {
        if(actions.containsKey(actionName)) {
            return actions.get(actionName);
        }
        return null;
    }
    public static void set(String name, Action action) {
        actions.put(name, action);
    }
}
